<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Reservation
 *
 * @author Hawra
 */
class Reservation {
    //put your code here
    private $reservation_id;
    private $user_id;
    private $resource_id;
    private $slot_id;
    private $slot_date;
    private $resource_type_id;
    private $slots_group_id;
    private $reservation_timestamp;
    private $reservation_note;
    
    function __construct() {
        
    }
    public function getReservation_id() {
        return $this->reservation_id;
    }

    public function setReservation_id($reservation_id) {
        $this->reservation_id = $reservation_id;
    }

        public function getUser_id() {
        return $this->user_id;
    }

    public function setUser_id($user_id) {
        $this->user_id = $user_id;
    }

    public function getResource_id() {
        return $this->resource_id;
    }

    public function setResource_id($resource_id) {
        $this->resource_id = $resource_id;
    }

    public function getSlot_id() {
        return $this->slot_id;
    }

    public function setSlot_id($slot_id) {
        $this->slot_id = $slot_id;
    }

    public function getSlot_date() {
        return $this->slot_date;
    }

    public function setSlot_date($slot_date) {
        $this->slot_date = $slot_date;
    }

    public function getResource_type_id() {
        return $this->resource_type_id;
    }

    public function setResource_type_id($resource_type_id) {
        $this->resource_type_id = $resource_type_id;
    }

    public function getSlots_group_id() {
        return $this->slots_group_id;
    }

    public function setSlots_group_id($slots_group_id) {
        $this->slots_group_id = $slots_group_id;
    }

    public function getReservation_timestamp() {
        return $this->reservation_timestamp;
    }

    public function setReservation_timestamp($reservation_timestamp) {
        $this->reservation_timestamp = $reservation_timestamp;
    }

    public function getReservation_note() {
        return $this->reservation_note;
    }

    public function setReservation_note($reservation_note) {
        $this->reservation_note = $reservation_note;
    }

     public function setValuesFromArray($array) {
        if (isset($array['reservation_id'])) {
            $this->setReservation_id($array['reservation_id']);
        }
        if (isset($array['user_id'])) {
            $this->setUser_id($array['user_id']);
        }
        if (isset($array['resource_id'])) {
            $this->setReservation_id($array['resource_id']);
        }
        if (isset($array['slot_id'])) {
            $this->setSlot_id($array['slot_id']);
        }
        if (isset($array['slot_date'])) {
            $this->setSlot_date($array['slot_date']);
        }
        if (isset($array['slots_group_id'])) {
            $this->setSlots_group_id($array['slots_group_id']);
        }
        if (isset($array['reservation_timestamp'])) {
            $this->setReservation_timestamp($array['reservation_timestamp']);
        }
        if (isset($array['reservation_note'])) {
            $this->setReservation_note($array['reservation_note']);
        }
        if (isset($array['resource_type_id'])) {
            $this->setResource_type_id($array['resource_type_id']);
        }
        
        
        
    }
}

?>
